import requests
def face_analyze(api_key,api_secret,face_token,attributes=None):
    base_url = 'https://api-cn.faceplusplus.com/facepp/v3/face/analyze'
    payload = {
            'api_key': api_key,
            'api_secret': api_secret,
            'face_tokens': face_token,
            'return_attributes': attributes
            }
    

    r = requests.post(base_url, params = payload)
    return r.json()